package main;

import memory.MemoryUtil;
import file.FileService;
import zip.ZIPUtil;

public class MainService {
	
	public MainService() throws Exception{
		
		fluxo1();

	}
	
	private void fluxo1() throws Exception{
//		System.gc();
		MemoryUtil.printMemory();
		byte[] arquivo = FileService.readICSAtivo2ZIP();
		
//		System.gc();
		MemoryUtil.printMemory();
		String arquivoTexto = ZIPUtil.unzip2(arquivo);
		
//		System.gc();
		MemoryUtil.printMemory();
		FileService.write(arquivoTexto);
		
//		System.gc();
		MemoryUtil.printMemory();
		
	}

}
